package nin.ja;

public abstract class Component {
	protected GameObject parent;
	
	public Component(){
		parent = null;
	}
	
	public Component(GameObject parent){
		setParent(parent);
	}
	
	public void setParent(GameObject parent){
		this.parent = parent;
	}
	
	public abstract void update(float delta);
	public abstract void onMessage(float delta, Message message);
	public abstract void reset();
}
